// 页面重定向
const redirect = { 
    path: '/index/commission',
    redirect: '/index/commission/accountStat'
}
// 页面路由
const pagePath = { 
    path: '/index/commission', 
    component: () => import('@/views/commission/Commission.vue'),
    name: 'Commission',
    children: [
        {
            path: '/index/commission/accountStat',
            component: import('@/views/commission/accountStat/AccountStat.vue'),
            name: 'accountStat'
        },
        {
            path: '/index/commission/commissionApproval/task',
            component: import('@/views/commission/commissionApproval/Task.vue'),
            name: 'Task'
        },
        {
            path: '/index/commission/commissionApproval/signing',
            component: import('@/views/commission/commissionApproval/Signing.vue'),
            name: 'Signing'
        },
        {
            path: '/index/commission/commissionApproval/referrer',
            component: import('@/views/commission/commissionApproval/Referrer.vue'),
            name: 'Referrer'
        },
        {
            path: '/index/commission/setting',
            component:import('@/views/commission/Setting/setting.vue'),
            name: 'Setting'
        }
    ]
}
// 父路由
const parent = '/index'

// 是否是一级路由
const levelOne = false

// 导出
const commissionRouter = {
    redirect,
    pagePath,
    parent,
    levelOne
}
export {
    commissionRouter
}